
import 'package:get/get.dart';
import 'package:my_flutter_test/core/base/BaseLogic.dart';

class DemoLogic extends BaseLogic{
  var count = 0.obs;
  var  text = "Hello getx".obs;


  increment() => count++;

  setCount(int count){
    this.count.value = count;
    print("设置 ${count}");
  }

  @override
  void onInit() {
    print("初始化");
    super.onInit();
  }

  @override
  void onReady() {
    print("加载完成");
    super.onReady();
  }

  @override
  void onClose() {
    print("控制器被释放");
    super.onClose();
  }
}